<div class="row">
	<div class="col-md-12">
		<ol class="breadcrumb">
			<li>
				<a href="#" onclick="toPayManage()">
					主页
				</a>
			</li>
			<li class="active">
				支付流水列表
			</li>
		</ol>
	</div>
</div>
<form role="form" class="form-horizontal">
	<div class="row page-cont">
		<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 cont-top">
			<div class="panel panel-white">
				<div class="panel-heading">
					<h4 class="panel-title">
						<span class="title-text">检索支付流水</span>
					</h4>
					<div class="panel-tools">
						<div class="dropdown">
							<a data-toggle="dropdown" class="btn btn-xs dropdown-toggle btn-transparent-grey">
								<i class="fa fa-cog"></i>
							</a>
							<ul class="dropdown-menu dropdown-light pull-right" role="menu">
								<li>
									<a class="panel-collapse collapses" href="#"><i class="fa fa-angle-up"></i> <span>折叠</span> </a>
								</li>
								<li>
									<a class="panel-expand" href="#">
										<i class="fa fa-expand"></i> <span>全屏</span>
									</a>
								</li>
							</ul>
						</div>
						<a class="btn btn-xs btn-link panel-close" href="#">
							<i class="fa fa-times"></i>
						</a>
					</div>
				</div>
				<div class="panel-body">
					<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">支付流水号</label>
					    <div class="col-sm-4">
					      <input type="text" class="form-control" id="payCode" />
					    </div>
				  	</div>
				  	<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">交易流水号</label>
					    <div class="col-sm-4">
					      <input type="text" class="form-control" id="tradeCode" />
					    </div>
				  	</div>
					<div class="form-group panel-cont">
					    <label for="coupon" class="col-sm-2 control-label">状态</label>
					    <div class="col-sm-4">
					      	<select class="">
								<option value="">全部</option>
								<option value="CLOSED">关闭</option>
								<option value="REFUND">退款中</option>
								<option value="WAIT">初始状态</option>
								<option value="PAY_SUCCESS">支付成功</option>
								<option value="PAY_FAILURE">支付失败(出异常的交易)</option>
								<option value="PAY_TIME_OUT">订单关闭，未支付(超时24小时未支付)</option>
								<option value="SUCCESS_REPEAT_TRADE">支付成功(再次支付)新的流水</option>
								<option value="CLOSE_SUCCESS">订单 关闭/超时 之后支付流水成功</option>
							</select>
					    </div>
				  	</div>
				  	<div class="form-group">
				  		<div class="col-sm-5 col-sm-offset-5">
				  			<button type="button" class="btn btn-primary">查询</button>
				  			<button type="reset" class="btn">重置</button>
				  		</div>
				  	</div>
				</div>
			</div>
		</div>
		<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 cont-bottom">
			<div class="panel panel-white">
				<div class="panel-heading">
					<h4 class="panel-title">
						<span class="title-text">支付流水列表</span>
					</h4>
					<div class="panel-tools">
						<div class="dropdown">
							<a data-toggle="dropdown" class="btn btn-xs dropdown-toggle btn-transparent-grey">
								<i class="fa fa-cog"></i>
							</a>
							<ul class="dropdown-menu dropdown-light pull-right" role="menu">
								<li>
									<a class="panel-collapse collapses" href="#"><i class="fa fa-angle-up"></i> <span>折叠</span> </a>
								</li>
								<li>
									<a class="panel-expand" href="#">
										<i class="fa fa-expand"></i> <span>全屏</span>
									</a>
								</li>
							</ul>
						</div>
						<a class="btn btn-xs btn-link panel-close" href="#">
							<i class="fa fa-times"></i>
						</a>
					</div>
				</div>
				<div class="panel-body table-body">
					<table class="table table-bordered table-hover">
						<thead>
							<tr>
								<th class="hidden-xs">支付流水</th>
								<th class="hidden-xs">交易流水号</th>
								<th class="hidden-xs">总额</th>
								<th class="hidden-xs">创建时间</th>
								<th class="hidden-xs">请求时间</th>
								<th class="hidden-xs">状态</th>
								<th class="hidden-xs">银行返回成功时间</th>
								<th class="hidden-xs">寄送银行流水号</th>
								<th class="hidden-xs">操作</th>
							</tr>
						</thead>
						<tbody>
							<tr align="center">
								<td>2343</td>
								<td>3423</td>
								<td>234</td>
								<td></td>
								<td></td>
								<td>
									<button type="button" class="btn btn-success btn-xs">订单关闭，未支付(超时24小时未支付)</button>
								</td>
								<td></td>
								<td></td>
								<td>
									<button type="button" class="btn btn-dark-yellow check-btn">查看&nbsp;<i class="fa fa-eye"></i></button>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</form>
<script>
	datePicker($("#createDate"));  // 创建时间

	// getDate($("#startDate"));
	// getDate($("#endDate"));
	
	// 信息验证
	// function checkMsg(){
	// 	if($("#couponName").val() == ""){
	// 		alert("优惠券名称不能为空");
	// 		$("#couponName").focus();
	// 		return false;
	// 	}else if($("#startDate").val() == ""){
	// 		alert("请选择开始时间");
	// 		$("#startDate").focus();
	// 		return false;
	// 	}else if($("#endDate").val() == ""){
	// 		alert("请选择结束时间");
	// 		$("#endDate").focus();
	// 		return false;
	// 	}else{
	// 		return true;
	// 	}
	// }


	// 查询
	function queryCoupon(){
		// if(checkMsg()){
		// 	alert("1");
		// }
	}

	// 查看支付流水详情
	toOperat($(".check-btn"),"view/payManage/pay-stream-view.html");
	
</script>
